package com.framework.service.impl;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import com.framework.dao.flow.FlowAgentIntegralDao;
import com.framework.entity.flow.FlowAgentIntegral;
import com.framework.service.FlowAgentIntegralService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wq
 * @date 2019/9/26 16:03
 * @description
 */
@Service
public class FlowAgentIntegralServiceImpl extends ServiceImpl<FlowAgentIntegralDao, FlowAgentIntegral> implements FlowAgentIntegralService {

    @Override
    public List<FlowAgentIntegral> queryIncomeList(Long agentId) {
        //return baseMapper.queryIncomeList(agentId);
        return baseMapper.selectList(new EntityWrapper<FlowAgentIntegral>().eq("agent_id",agentId));
    }
}
